import {Component} from '@angular/core';
import {IonicPage, NavController, NavParams, Platform, ViewController} from 'ionic-angular';
import {AppConfig} from "../../app/app.config";

/**
 * Generated class for the ModifySexPage page.
 *
 * See https://ionicframework.com/docs/components/#navigation for more info on
 * Ionic pages and navigation.
 */

@IonicPage()
@Component({
  selector: 'page-modify-sex',
  templateUrl: 'modify-sex.html',
})
export class ModifySexPage {

  modifySex: any;
  sex: any;

  constructor(public navCtrl: NavController,
              public navParams: NavParams,
              public viewCtrl: ViewController,
              public platform: Platform) {
  }

  ionViewDidLoad() {
    console.log('ionViewDidLoad ModifySexPage');
  }

  ionViewDidEnter() {
    AppConfig.viewCtrl = this.viewCtrl;
  }

  dismiss() {
    this.viewCtrl.dismiss()
  }

  savaSex() {
    this.viewCtrl.dismiss(this.sex);
  }

}
